package history

class Power {
    String url
    String menu
    String item
    String memo
    static hasMany = [teams:Team]
    static belongsTo = [Team]

    static constraints = {
        url(blank:false,unique:true)
        menu(blank:false)
        item(blank:false)
        memo(nullable:true)
        teams(nullable:true)
    }
    
    String toString( ) {
        "$menu-$item"
    }
}
